HTML. Mohammed Alhessi M.Sc. Geomatics Engineering. Internet GIS Technologies كلية اآلداب - قسم الجغرافيا نظم المعلومات الجغرافية

Similar documents
INTRODUCTION TO WEB USING HTML What is HTML?

Programmazione Web a.a. 2017/2018 HTML5

Web Design 101. What is HTML? HTML Tags. Web Browsers. <!DOCTYPE html> <html> <body> <h1>my First Heading</h1> <p>my first paragraph.

Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM Advanced Internet Technology Lab.

HTML. Hypertext Markup Language. Code used to create web pages

c122jan2714.notebook January 27, 2014

Web Programming HTML CSS JavaScript Step by step Exercises Hans-Petter Halvorsen

With HTML you can create your own Web site. This tutorial teaches you everything about HTML.

Desire2Learn: HTML Basics

This document provides a concise, introductory lesson in HTML formatting.

11. HTML5 and Future Web Application

7300 Warden Avenue, Suite 503 Markham, Ontario Canada L3R 9Z6. Phone: Toll Free: Fax:

Understanding the Web Design Environment. Principles of Web Design, Third Edition

COMSC-030 Web Site Development- Part 1. Part-Time Instructor: Joenil Mistal

The internet is a worldwide collection of networks that link millions of computers. These links allow the computers to share and send data.

It is possible to create webpages without knowing anything about the HTML source behind the page.

Web Programming and Design. MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh

Index. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148

What is a web site? Web editors Introduction to HTML (Hyper Text Markup Language)

What is XHTML? XHTML is the language used to create and organize a web page:

introduction to XHTML

Web Publishing Basics I

Introduction to Web Development

WEBSITE DEVELOPMENT CODERDOJO ATHENRY 2014

Web Engineering (Lecture 01)

Web Designing HTML5 NOTES

Training Sister Hicks

Module 2 (III): XHTML

Attributes & Images 1 Create a new webpage

Introduction to HTML

Bridges To Computing

Developing a Basic Web Page

University of Hawaii at Hilo WEB AND HTML THE INTERNET MAP ( COURTESY OF WIKIMEDIA COMMONS)

HTML. Based mostly on

WEB APPLICATION. XI, Code- 803

Web Publishing with HTML

Announcements. Paper due this Wednesday

Unit 2 - HTML Formatting

Anatomy of an HTML document

Unit 5 Web Publishing Systems Page 1 of 13 Part 4 HTML Part 4

Web Design and Development ACS Chapter 3. Document Setup

Web Page Creation Part I. CS27101 Introduction to Web Interface Design Prof. Angela Guercio

CMPT 165 Unit 2 Markup Part 2

HTML OBJECTIVES WHAT IS HTML? BY FAITH BRENNER AN INTRODUCTION

Html basics Course Outline

Introduction to WEB PROGRAMMING

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

Hypertext Markup Language, or HTML, is a markup

Assignments (4) Assessment as per Schedule (2)

Creating and Building Websites

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

Chapter 4 A Hypertext Markup Language Primer

Introduction to HTML and CSS. Arts and Humanities in the Digital Age 2018 CHASE DTP Dr. Paul Gooding

Beginning Web Site Design

CSC 121 Computers and Scientific Thinking

CREATING A WEBSITE USING CSS. Mrs. Procopio CTEC6 MYP1

VCE / VET INFORMATION AND COMMUNICATION TECHNOLOGY

Motivation (WWW) Markup Languages (defined). 7/15/2012. CISC1600-SummerII2012-Raphael-lec2 1. Agenda

A HTML document has two sections 1) HEAD section and 2) BODY section A HTML file is saved with.html or.htm extension

Web Programming and Design. MPT Senior Cycle Tutor: Tamara Week 1

Fundamentals of Website Development

Navigation. Websites need a formalized system of links to allow users to navigate the site

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

Downloads: Google Chrome Browser (Free) - Adobe Brackets (Free) -

Comm 244 Week 3. Navigation. Navigation. Websites need a formalized system of links to allow users to navigate the site

Part 1: HTML Language HyperText Make-up Language

Tutorial 2 - HTML basics

CSC309 Tutorial CSS & XHTML

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

How the Internet Works

HTML = hyper text markup language

1. The basic building block of an HTML document is called a(n) a. tag. b. element. c. attribute. d. container. Answer: b Page 5

Objectives. Introduction to HTML. Objectives. Objectives

CSCE 101. Creating Web Pages with HTML5 Applying style with CSS

The University of Hawaii at Manoa Library Webpage Content/Design/Style Guidelines General Site Design... 2

Creating Web Pages Using Netscape Composer AGENDA FOR THIS WORKSHOP. 1. How does it all work? 2. What do I need to get started at Fairfield?

recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML)

HTML MIS Konstantin Bauman. Department of MIS Fox School of Business Temple University

XHTML. XHTML stands for EXtensible HyperText Markup Language. XHTML is the next generation of HTML. XHTML is almost identical to HTML 4.

CSS: The Basics CISC 282 September 20, 2014

CMT111-01/M1: HTML & Dreamweaver. Creating an HTML Document

HTML HTML/XHTML HTML / XHTML HTML HTML: XHTML: (extensible HTML) Loose syntax Few syntactic rules: not enforced by HTML processors.

Introduction, Notepad++, File Structure, 9 Tags, Hyperlinks 1

INTRODUCTION TO HTML5! HTML5 Page Structure!

HTML, CSS, JavaScript

DREAMWEAVER QUICK START TABLE OF CONTENT

Dreamweaver Domain 5: Organizing Content by Using Dreamweaver CS5

Revision for Grade 7 ASP in Unit :1&2 Design & Technology Subject

Chapter 1 Self Test. LATIHAN BAB 1. tjetjeprb{at}gmail{dot}com. webdesign/favorites.html :// / / / that houses that information. structure?

Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo

Web Development & Design Foundations with XHTML. Chapter 2 Key Concepts

COMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2017)

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6

Introduction to Cascading Style Sheet (CSS)

Your Own Web Page; Quick and Dirty Via Mashup Reminder: Next Quiz on 4/15

Web Design and Development Tutorial 03

FUNDAMENTALS OF WEB DESIGN (405)

<body bgcolor=" " fgcolor=" " link=" " vlink=" " alink=" "> These body attributes have now been deprecated, and should not be used in XHTML.


Certified HTML5 Developer VS-1029

Transcription:

HTML Mohammed Alhessi M.Sc. Geomatics Engineering Wednesday, February 18, 2015 Eng. Mohammed Alhessi 1

W3Schools Main Reference: http://www.w3schools.com/ 2

What is HTML? HTML is a markup language for describing web documents (web pages). HTML stands for Hyper Text Markup Language A markup language is a set of markup tags HTML documents are described by HTML tags Each HTML tag describes different document content 3

Small HTML document 4

Output 5

Example Explained The DOCTYPE declaration defines the document type to be HTML The text between <html> and </html> describes an HTML document The text between <head> and </head> provides information about the document The text between <title> and </title> provides a title for the document The text between <body> and </body> describes the visible page content The text between <h1> and </h1> describes a heading The text between <p> and </p> describes paragraph Using this description, a web browser can display a document with a heading and a paragraph. 6

HTML Tags HTML tags are keywords (tag names) surrounded by angle brackets: <tagname>content</tagname> HTML tags normally come in pairs like <p> and </p> The first tag in a pair is the start tag, the second tag is the end tag The end tag is written like the start tag, but with a slash before the tag name The start tag is often called the opening tag. The end tag is often called the closing tag. 7

Web Browsers The purpose of a web browser (Chrome, IE, Firefox, Safari) is to read HTML documents and display them. The browser does not display the HTML tags, but uses them to determine how to display the document: 8

HTML Page Structure 9

The <!DOCTYPE> Declaration The <!DOCTYPE> declaration helps the browser to display a web page correctly. There are different document types on the web. To display a document correctly, the browser must know both type and version. The doctype declaration is not case sensitive. All cases are acceptable: 10

Common Declarations 11

HTML Versions 12

HTML Editor HTML can be edited by using a professional HTML editor like: Adobe Dreamweaver Let s try it now Microsoft Expression Web CoffeeCup HTML Editor Text Editor: Notepad However, for learning HTML we recommend a text editor like Notepad (PC) or TextEdit (Mac). We believe using a simple text editor is a good way to learn HTML. 13

HTML Elements HTML elements are written with a start tag, with an end tag, with the content in between: <tagname>content</tagname> The HTML element is everything from the start tag to the end tag: <p>my first HTML paragraph.</p> 14

Nested HTML Elements HTML elements can be nested (elements can contain elements). All HTML documents consist of nested HTML elements. This example contains 4 HTML elements: 15

Don't Forget the End Tag Some HTML elements will display correctly, even if you forget the end tag: 16

Empty HTML Elements HTML elements with no content are called empty elements. <br> is an empty element without a closing tag (the <br> tag defines a line break). Empty element can be "closed" in the opening tag like this: <br />. HTML5 does not require empty elements to be closed. But if you need stricter validation, and make your document readable by XML parsers, please close all HTML elements. 17

HTML Tip: Use Lowercase Tags HTML tags are not case sensitive: <P> means the same as <p>. The HTML5 standard does not require lowercase tags, but W3C recommends lowercase in HTML4, and demands lowercase for stricter document types like XHTML. At W3Schools they always use lowercase tags. 18

HTML Attributes HTML elements can have attributes Attributes provide additional information about an element Attributes are always specified in the start tag Attributes come in name/value pairs like: name="value" 19

The lang Attribute The document language can be declared in the <html> tag. The language is declared in the lang attribute. Declaring a language is important for accessibility applications (screen readers) and search engines: 20

The title Attribute HTML paragraphs are defined with the <p> tag. When you move the mouse over the element, the title will be displayed as a tooltip. In this example, the <p> element has a title attribute. The value of the attribute is "About W3Schools": 21

The href Attribute HTML links are defined with the <a> tag. The link address is specified in the href attribute: 22

Size Attributes HTML images are defined with the <img> tag. The filename of the source (src), and the size of the image (width and height) are all provided as attributes The image size is specified in pixels: width="104" means 104 screen pixels wide. 23

W3Schools Suggests: Always Use Lowercase Attributes W3Schools Suggests: Always Quote Attribute Values 24

Headings Headings are defined with the <h1> to <h6> tags. <h1> defines the most important heading. <h6> defines the least important heading. 25

Headings Are Important Use HTML headings for headings only. Don't use headings to make text BIG or bold. Search engines use your headings to index the structure and content of your web pages. Users skim your pages by its headings. It is important to use headings to show the document structure. h1 headings should be main headings, followed by h2 headings, then the less important h3, and so on. 26

HTML Horizontal Rules The <hr> tag creates a horizontal line in an HTML page. The hr element can be used to separate content: 27

The HTML <head> Element The HTML <head> element has nothing to do with HTML headings. The HTML <head> element contains meta data. Meta data are not displayed. The HTML <head> element is placed between the <html> tag and the <body> tag: 28

The HTML <meta> element is also meta data. It can be used to define the character set, and other information about the HTML document. In the chapter about HTML styles you discover more meta elements: The HTML <style> element is used to define internal CSS style sheets. The HTML <link> element is used to define external CSS style sheets. 29

HTML Paragraphs The HTML <p> element defines a paragraph. 30

31

The Poem Problem 32

The HTML <pre> Element 33

HTML Styling Every HTML element has a default style (background color is white, text color is black, text-size is 12px...) Changing the default style of an HTML element, can be done with the style attribute. This example changes the default background color from white to lightgrey: 34

The HTML Style Attribute The HTML style attribute has the following syntax: The property is a CSS property. The value is a CSS value. 35

HTML Text Color The color property defines the text color to be used for an HTML element: 36

HTML Text Fonts The font-family property defines the font to be used for an HTML element: 37

HTML Text Size The font-size property defines the text size to be used for an HTML element: 38

HTML Text Alignment The text-align property defines the horizontal text alignment for an HTML element: 39

HTML Comment Tags You can add comments to your HTML source by using the following syntax: <!-- Write your comments here --> 40

HTML Styles - CSS 41

Assignment01 Install Dreamweaver Prepare ideas for you project. Deadline: next week Practice the examples in the lecture notes 42

Assignment 02 43

References http://www.w3schools.com/ 44